module.exports = app => {
    const mongoose = app.mongoose;
    const Schema = mongoose.Schema;

    let d = new Date();
    const UserTemp = new Schema({
        phoneId: { type: String },
        send_count: { type: Number },
        sign: { type: String },
        add_day: { type: Number },
        ip: { type: String },
        add_time: {
            type: Number,
            default: d.getTime()
        }
    });

    return mongoose.model('UserTemp', UserTemp);
}